/*
 * @Author: Kevin Zhao
 * @Date: 2022-11-06 19:41:48
 * @LastEditTime: 2022-11-06 19:52:47
 * @LastEditors: Kevin Zhao
 * @Description: 窗口信息
 * @FilePath: \tf-admin\src\api\window.ts
 */
import requset from "../utils/request"

/**
 * @description: 获取窗口电话列表
 * @return {*}
 */
export const getWindowAPI = (data: any) => {
    return requset('wind/getAllWindPage', 'GET', data)
}


/**
 * @description: 新增窗口信息
 * @return {*}
 */
export const addWindowAPI = (data: any) => {
    return requset('wind/addWind', 'POST', data)
}

/**
 * @description: 更新窗口信息
 * @return {*}
 */
export const updateWindowAPI = (data: any) => {
    return requset('wind/updateWind', 'POST', data)
}

/**
 * @description: 删除窗口信息
 * @return {*}
 */
 export const deleteWindowAPI = (data: any) => {
    return requset(`wind/deleteWid/${data.id}`, 'GET', data)
}

